<template>
	<view class="cu-bar search bg-white" :class="'bg-'+ theme.themeColor">
		<view class="search-form round">
			<text class="cuIcon-search"></text>
			<input  disabled :adjust-position="false" type="text"
				placeholder="搜索商品" confirm-type="search" @tap="doSearch"></input>
			<button class="cu-btn round sm margin-xs" :class="'bg-'+ theme.themeColor" @tap="doSearch">搜索</button>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				theme: getApp().globalData.theme, //主题
			}
		},

		methods: {
			doSearch() {
				uni.navigateTo({
					url: '/pages/goods/goods-search/index'
				})
			}
		}
	}
</script>

<style>
</style>
